package com.zheng.wc.rpc.api;

import com.zheng.wc.dao.model.WcNotice;
import com.zheng.common.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author likun
 * @since 2018-04-23
 */
public interface WcNoticeService extends BaseService<WcNotice> {
    boolean deletePlans(String ids);

    List<Map<String, Object>> selectNoticePage(WcNotice notice);

    Integer selectNoticePageCount(WcNotice notice);

    /**
     *
     * @param notice
     * @param userIds
     * @param state 如果为空 设置为草稿
     * @return
     */
    boolean insertNotice(WcNotice notice, List<Integer> userIds, Integer state);

    boolean updateState(String ids, Integer state);
}
